a few tiny fixes (PEP8 and docstrings)