block by cpbotha 1b42a20c8f3eb9bb7cb8

pyside_dynamic.py with minor improvements - also see http://stackoverflow.com/a/14894550/532513

pyside_dynamic.py