made sha1 comply with pep8