code: def get_mems(self, type):
          
          ret = ()
          for m in self.mems:
              if m.type == type:
                  ret += (m,)
  
          return ret
docs: Fetch all the memories of the supplied type