from threading import Lock ARCH_LOCK = Lock() ARCH_JOBS = {}