Updated PyQt compatibility