def create_report(self, template='default', save_loc='default'): """Create a formatted report with relevant information and save it""" # create Report object with relevant company, portfolio, and news data rep = Report() # populate report in the format of a chosen template rep.build_report(template) this.report = rep.get_report() # save report in specified location save_log = rep.save_report(save_loc) # return the log of the saved report return save_log