def get_desktop_module(name):
 global DESKTOP_MODULES
 for app in DESKTOP_MODULES:
  if (app.name == name):
   return app
 return None

def get_desktop_module ( name ) : global DESKTOP_MODULES for app in DESKTOP_MODULES : if ( app . name == name ) : return app return None
harmless linear search .