Python using getattr to call function with variable parameters,"getattr(foo, bar)(*params)"