Basic netcode, I am going to redo it using regular sockets rather than python Twisted