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

def conn_has_method ( conn , method_name ) : if ( method_name in dir ( conn ) ) : return True log . error ( "Method '{0}' not yet supported!" . format ( method_name ) ) return False
find if the provided connection object has a specific method .