Is it possible to acquire the global interpreter lock from python code? Or is that purely implemented in the C side?
If your code executes then you have the GIL, no need to acquire it manually.