PySide, shiboken: Python 3 support

#27337, #27502