added code format/style test and fixed up code

I converted all instances of `'''` to `"""` because PEP267 uses the double-quotes.

I also moved the param types into the `:param <type> <name>:` format.

Fix PEP8 things in a few places.
Yes, but I need this tool to build those packages and then source the result. From a user facing point of view that really sucks that I have use the tool before I can test it.

Currently the process to test it is:

1. Install `flake8`
1. `python setup.py nosetest`

Which is a lot simpler than what you are suggesting, either way if you want to pursue that strategy I would ask for pull request and documentation on how to do the setup for running the tests and then how to run the tests. I would do it myself but I don't see an elegant way to set it up.