Added straight conversion from python int objects. There was a long conversion, but not all ints are long in python2.