python communication and test interface with gui