Fixed Python 3 portability issue with asset hashing