Calling a function of a module by using its name (a string)
What is the best way to go call a function, given a string with the function’s name in a Python program. For example, let’s say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?