code: def get_fields(self):
          
          l = []
          for i in self.classes.class_def:
              for j in i.get_fields():
                  l.append(j)
          return l
docs: Return all field objects
  
            :rtype: a list of :class:`EncodedField` objects