BUG: itk::PyCommand ensures the GIL state
BUG: itk::PyCommand ensures the GIL state

Obtain and return the Python Global Interpreter Lock state before and
after running Python commands to ensure the correct interpreter when
Python is running threads.

Based on sitkPyCommand.cxx.

See also: https://docs.python.org/3/c-api/init.html#non-python-created-threads

malaterre/ITK,malaterre/ITK,hjmjohnson/ITK,Kitware/ITK,Kitware/ITK,malaterre/ITK,vfonov/ITK,malaterre/ITK,thewtex/ITK,LucasGandel/ITK,richardbeare/ITK,BRAINSia/ITK,BRAINSia/ITK,malaterre/ITK,hjmjohnson/ITK,vfonov/ITK,thewtex/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,Kitware/ITK,vfonov/ITK,richardbeare/ITK,richardbeare/ITK,BRAINSia/ITK,thewtex/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,richardbeare/ITK,BRAINSia/ITK,LucasGandel/ITK,vfonov/ITK,LucasGandel/ITK,hjmjohnson/ITK,richardbeare/ITK,hjmjohnson/ITK,thewtex/ITK,vfonov/ITK,malaterre/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,thewtex/ITK,hjmjohnson/ITK,richardbeare/ITK,LucasGandel/ITK,LucasGandel/ITK,vfonov/ITK,Kitware/ITK,malaterre/ITK,Kitware/ITK,vfonov/ITK,hjmjohnson/ITK,LucasGandel/ITK,BRAINSia/ITK,hjmjohnson/ITK,Kitware/ITK,thewtex/ITK,malaterre/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,Kitware/ITK,LucasGandel/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK