interact with Python GUI