fix docs pep8 and code style