If you're certain the problem is Python, consider using SIP (PyQt's binding generator) for hybrid development.