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;
Merge pull request #218 from omaciel/fix_api_from_adam

Clean up for Pull Request #208.