I created the network class.
The network connects a socket to the Raspberry Pi on port 111.
It can currently take a boolean or coordinates dependent upon what the the Pi is sending.
If you would like additional clarifications leave a comment and I will make additional comment to the code.