new_contents: #!/usr/bin/env python
  import socket
  import struct
  import json
  def send(s, message):
  	length = len(message)
          # network (= big-endian)
  	lenBin = struct.pack("!H", length)
  	s.send(lenBin)
  	s.send(message)
  
  def pack(method, raw):
          methodLen = len(method)
          methodLenBin = struct.pack("B", methodLen)
          data = methodLenBin+method+raw
          return data
  def recv(s):
  	data = s.recv(2)
  	leng1 = struct.unpack("!H", data)[0]
  	print leng1
  	data = s.recv(1)
  	leng2 = struct.unpack("B", data)[0]
  	print leng2
  	data = s.recv(leng2)
  	data = s.recv(leng1 - 1)
  	print data
  
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  s.connect(("localhost", 5555))
  send(s, pack("auth",json.dumps({'user':'abcd', 'password':"abcd"})))
  send(s, pack("show", json.dumps({})))
  recv(s)
  send(s, pack("move",json.dumps({'x':100, 'y':2})))
  send(s, pack("move",json.dumps({'x':100, 'y':3})))
  send(s, pack("worlds",json.dumps({})))
  send(s, pack("friends", json.dumps({})))
  send(s, pack("talk", json.dumps({"userId":1, "msg":"hello world"})))
  send(s, pack("talk", json.dumps({"userId":1, "msg":"hello world"})))
  send(s, pack("talk", json.dumps({"userId":1, "msg":"hello world"})))
  send(s, pack("talk", json.dumps({"userId":1, "msg":"hello world"})))
  data = s.recv(1024)
  print data
  send(s, pack("logout", json.dumps({})))
  data = s.recv(1024)
  print data
  s.close()
  
subject: Change folder