Make Qt Python bindings behave like decent Python citizens.