def invoke_member(obj, membername, *args, **kwargs):
 return getattr(obj, membername)(*args, **kwargs)

def invoke_member ( obj , membername , * args , ** kwargs ) : return getattr ( obj , membername ) ( * args , ** kwargs )
retrieves a member of an object .