Add hash and truediv functions for python3