adding version that shows communication between the two, and that has the python module write a messages file to disk showing the state change messages