nested parallelism in python,pickle.dumps(threading.Lock())