code: def gencode(self):
          
          ledict = requests.get(self.api_url).json()
          ledict = self.dotopdict(ledict)
          out = self.dodict(ledict)
          self._code = out
docs: Run this to generate the code