Client and server app for transmitting a signal over a network in python