Fix examples on Qt and interactive session

* Remove explicit wx dependencies.
* Save demo object so that it doesn't get garbage collected in an interactive session.
* Minor PEP8 cleanups and color/layout tweaks.