Migrated changes to PyQt4