def get_extension(extension_id):
 for extension in get_extensions():
  if (extension.get_id() == extension_id):
   return extension
 return None

def get_extension ( extension_id ) : for extension in get_extensions ( ) : if ( extension . get_id ( ) == extension_id ) : return extension return None
get the extension of a given url .