pyside: modernisation

Modernises the Python handling a wee bit. Sphinx is kind of stroppy, so this might help kick it back into behaving a little more regularly. Perhaps.