code: def ach(structure, fields):
      
      field = fields.pop(0)
      if structure:
          if hasattr(structure, field):
              structure = getattr(structure, field)
              if not fields:
                  return structure
              return ach(structure, fields)
      return None
docs: Get field from achievements structure.