python basic tcp socket server and client  implementation