`import threading` and `threading.Lock()` are the prefferred spelling.