old_contents: #!/usr/bin/env python
  from __future__ import print_function
  from __future__ import unicode_literals
  import socket
  import sys
  
  client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP)
  client_socket.connect(('127.0.0.1', 50000))
  client_socket.sendall(sys.argv[1])
  client_socket.shutdown(socket.SHUT_WR)
  print(client_socket.recv(32))
  client_socket.close()
  
  
new_contents: #!/usr/bin/env python
  from __future__ import print_function
  from __future__ import unicode_literals
  import socket
  import sys
  
  
  def client_socket_funciton():
      client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP)
      client_socket.connect(('127.0.0.1', 50000))
      client_socket.sendall(sys.argv[1])
      client_socket.shutdown(socket.SHUT_WR)
      recieve = client_socket.recv(32)
      client_socket.close()
      return recieve
  
  if __name__ == '__main__':
      recieve = client_socket_funciton()
      print(recieve)
  
subject: change client server into a funciton.