I have a situation in python, I need to Load a module and Instantiate a class based on value provided in INI config.
[providers]
provider=bsnl ; provider may be bsnl/airtel/vodafone/etc..
In my class I am reading this value and in a class method I have to load bsnl_provider.py and has to instantiate BSNLClass. If provider changes to airtel then I have to load airtel_provider.py and has to instantiate AIRTElClass.
How can I load relevant module and instantiate relevant class?