hamster: fix some pep8 issues