<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compute_schedules(courses=None, excluded_times=(), free_sections_only=True, problem=None, return_generator=False, section_constraint=None):
 """ Returns all possible schedules for the given courses. """

    s = Scheduler(free_sections_only, problem, constraint=section_constraint)
    s.exclude_times(*tuple(excluded_times))
    return s.find_schedules(courses, return_generator)