fix for qt4 support + Python3