now compatible with PyQt5

Signed-off-by: Adam McNicol <adam@mcnicol.me>