code: def pack(self):
          '''
          Make ApptRec json/msgpack-friendly
          '''
          reqdictf = {k.name.lower(): v for (k, v) in self.reqdict.items()}
          incunitf = None if self.incunit is None else self.incunit.name.lower()
          return (reqdictf, incunitf, self.incvalf pack(self):
          '''
          Make ApptRec json/msgpack-friendly
          '''
          reqdictf = {k.name.lower(): v for (k, v) in self.reqdict.items()}
          incunitf = None if self.incunit is None else self.incunit.name.lower()
          return (reqdictf, incunitf, self.incval)
docs: Make ApptRec json/msgpack-friendly