def pick1():
    return pickle.dumps(d, -1)

def cpick():
    return cPickle.dumps(d)

def cpick1():
    return cPickle.dumps(d, -1)

def jso():
    return json.dumps(d)
Fast JSON serialization (and comparison with Pickle) for cluster computing in Python?