def create_program (): p = Program("Dummy Program") for t, d in data: c = Course (t) c.short_desc = d p.courses.append (c) return p