don't distinguish between int and long

if no type is explicitly specified, send as int32 if possible, otherwise
use int64 automatically.
Py3 has no separate 'long' type anyway, and on 64 bit systems the ranges
of Py2's int and C's int32_t don't match.