Fixed to work after a spyder reset + pep8 fixes

Great work!

I tried it on my development version of Spyder, and had a few hiccups.  The first time I ran it, it complained because the values were not available in `self.get_option`, so I set some defaults.  Then, when I tried resetting spyder, I got a complaint that there was no `dockwidget` for the plugin, so I created a dummy one.  I can now load the plugin from a reset.  Also, I ran autopep8 on the source code itself.

![spyder](https://f.cloud.github.com/assets/2096628/1460087/a70c3238-440e-11e3-8f6a-b949358f264e.png)