gen_integer() change

Using Win64 Python2.7, sys.maxsize returns a long and the `isinstance(maxsize, int)` test fails. I updated this to a tuple to consider the differences with Python3 (which doesn't really use `long()`) by adding an integer types tuple `(int, long,)` depending on the platform.