I\'m looking for a better way to call functions based on a variable in Python vs using if/else statements like below. Each status code has a corresponding function
Some improvement to SilentGhost's answer:
globals()[status.lower()](*args, **kwargs)
if you want to call the function defined in the current module.
Though it looks ugly. I'd use the solution with dictionary.