This is the python and java versions of the socket programming