Updating docstrings and other pep and pylint requirements