In reply to Kirsten.

$courses_list = new Courses();
set_query_var('courses', $courses_list);

get_template_part('module');

Inside the template part file:

$all_courses = get_query_var('courses');