def get_email_from_username(username):
 user_model = user_models.UserSettingsModel.get_by_normalized_username(UserSettings.normalize_username(username))
 if (user_model is None):
  return None
 else:
  return user_model.email

def get_email_from_username ( username ) : user_model = user_models . UserSettingsModel . get_by_normalized_username ( UserSettings . normalize_username ( username ) ) if ( user_model is None ) : return None else : return user_model . email
gets the email for a given username .