Code clean up for pylint and sphinx.