fixed a bug with defining longs in python3