Python module that connects a server and client and passes messages to each other