Added the ability to run external files in the context of qtile

Closes #488
A few style changes for #488

* we're python2/3 compat now
* don't use local imports
* don't escape strings so much