Fix: Check the module for the requested class to be initialized in a
thread-safe and compatible (with multiple python versions) way