Clean up for Pull Request #208.

* Some PEP8 and pylint love;
* Fixed variable names to use lower_case_with_underscores format;
* Test classes should inherit BaseAPI first, followed by mixins;