code: def write_slide_list(self, logname, slides):
          
          # Write slides.txt with list of slides
          with open('%s/%s' % (self.cache, logname), 'w') as logfile:
              for slide in slides:
                  heading = slide['heading']['text']
                  filename = self.get_image_name(heading)
                  
                  print('%s,%d' % (filename, slide.get('time', 0)),
                        file=logfile)
docs: Write list of slides to logfile