Add Python 3 support to tinyarray.
Tinyarray will work with both Python 2 and Python 3 after this change.