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.
You can either run those three command in your shell (to ensure to use the same lint configuration). and as I said before you can even create a nosetest in this package which just invokes the same functionality via API.