Formatted to pass pep8 coding style and sphinx Python Docstrings