remove pep8 errors, support asyncio