finished hashes.py file