Manage python Global Interpreter Lock to allow plugin threading