from pathlib import Path from threading import Lock base_path = Path(__file__).resolve().parent.parent.parent lock = Lock() account = None