code: def write(self):
          
          if (self.data):
              dataPath = self.client.local_dir / (urllib.parse.quote_plus(self.uri)+'.json')
              with dataPath.open(mode='w') as dump_file:
                  json.dump(self.data, dump_file)
                  dump_file.close()
              logger.info('Wrote ' + self.uri + ' to file')
              return True
          else:
              logger.warning('No data to write for ' + self.uri)
              return False
docs: If data exists for the entity, writes it to disk as a .JSON file with
               the url-encoded URI as the filename and returns True. Else, returns
               False.