Can anyone tell me if there is a way in python that I can implement a factory function which takes as input a string ClassName and returns an object of type ClassName?