first version where arduino and python stuff works. added third state and two-way communication