Fixed python 2 issue with long integers.