fix #7: pep8: clean errors and some warnings