Bug 916819 - Style fixes

* ok_() instead of assert
* ' instead of "
* Some PEP-8 violations that flake8 complained about