def has_method(obj, method_name):
 if (method_name in dir(obj)):
  return True
 log.error("Method '{0}' not yet supported!".format(method_name))
 return False

def has_method ( obj , method_name ) : if ( method_name in dir ( obj ) ) : return True log . error ( "Method '{0}' not yet supported!" . format ( method_name ) ) return False
check if function name was defined in obj .