updated author and made everything pyflakes and pep8 compatible