I have the following setup:
test.py
test\
__init__.py
abstract_handler.py
first_handler.py
second_handler.py
first_handler.py and second_handler.py contain classes with the same names that inherit from abstract_handler.
What I want to do in test.py is: given a string containing "first_handler" or any other handler class, create an object of that class.
Most solutions I found assume that the classes are in the same module (test.py), I don't know how to dynamically import the specific required class.