Make py_pack_int interface match Python version.