fixed bug, hasher not returned, pep8 fixes