Makes code pep8 and hacking suitable

Swaps some import lines to be ok with hacking.
Corrects indentation of closing bracket to be ok with pep8.
Removes all errors from ignore list in tox.ini.

Change-Id: If39bf90686ccf1fad9d5fb4b8b5a800f47286a16