def api_enabled(request, course_key):
 course = _get_course(request, course_key)
 return notes_enabled_for_course(course)

def api_enabled ( request , course_key ) : course = _get_course ( request , course_key ) return notes_enabled_for_course ( course )
returns true if the api is enabled for the course .