support Tk Python GUI event loops