Refactor: python: Modify docstrings to follow PEP 257.
- The first line of each docstring should end with a period.
- Remove spaces between the docstring and its enclosing triple quotes.
- Remove empty lines between the docstring and the code that comes after it.
- Remove empty lines between "Arguments:" and the list of arguments.
- Multi-line docstrings should start on the line after the triple quotes and all lines should be indented the same amount.
- Add docstrings for methods that were missing one.