fix pyside+py3 bugs to satisfy CI