Simple socket server/client written in Python