Fix Qt import for Python 2.7 in Ubuntu