New stlye qt calls

Changed all qt calls to 'new style' due to a bug in PySide (see #2378)

In the course of this I discovered that there was some funny merging/un-merging of the patches from @mspacek that resulted in there being no `col2hex` defined.  It may be worth a separate issue to make sure nothing else got lost. 

Everything seems to work, but I could not figure out how to get the font editor dialog to come up (I suspect that the italics and bold labels won't show up).

Also includes a bunch of pep8 cleanup