Python 2.7 compatibility

hashID should now also work using Python 2.7 and above