[Python.NET] Locking Issues