better Py -> C conversion for integral types (ticket #255)