Fix xdot.py Error when start scanning from GUI #1327