Fixed issue with python 3.x and integer testing in dtypes.py