Removed hash algorithm and did some pep8