How to dynamically select a method call in Python?,"getattr(foo_obj, command)()"