fix docs, pyflakes