modified test_types.py to be compatible with python 3