little bugfix and some pep8