best to define the conversion funcs at module load
py3 doesnt have long... int types check for compatability defined based on py major num