pep8, pyflakes and async fixes