Testing and logging refactor: Autopep8 and import style cleanup (WIP - Do not merge)

Step 1 of refactor process
====================
* autopep8 files related to testing and logging
* cleaned up style for import statements 
* purged unneeded comments #{{{ and #}}} to increase code readability

Next step
=======
* add loggers to files
* add a simple and a verbose logging format
* clean up logging messages and convert print statements in test files to log messages

Thanks @paulproteus for the earlier feedback :-)


I'd vaguely prefer to retain the information of which doc to look at.