def METHOD_NAME(flds):
  if (len(flds) == 1):
    name = flds[0]
  elif (len(flds) == 3):
    name = flds[2]
  else:
    return
  if (name == "libtbx.load_env"):
    name = "env"
  else:
    name = name.split(".")[-1] # XXX very crude
  if (name != "*" and name not in imported_names_dict):
    imported_names_dict[name] = len(imported_names_dict)