pyside: modernisation

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