BUG: Fixed BUG #4823. The issue arose because of multithreading. When testing
with python was enabled, we have an interpretor initialized in a separate thread. This requires that we use correct locking mechaism for python to work correctly. Fixed that.
Showing with 9 additions and 1 deletion