Formatting and PEP8 cleanup.

* Removed unused umport statements;
* Fixed code alignment;
* Triple double-quoted strings should be used for docstrings;