ilastik.py: Don't import Qt in headless mode.