Network project implementing sockets in Python