pep8/pyflakes fixes for compute flavors tests

* Modified comments and error messages to use correct style
* Reformatted code to fit pep8 and internal code standards

Change-Id: Ib0c8e25271ce237eca5a39f7ae5a86912b5f66b3
Merge "pep8/pyflakes fixes for compute flavors tests"