import threading lock = threading.RLock()