fixing missing global name
Report.generate() returns string instead of printing