def list_courses(request, username, org=None, filter_=None):
 user = get_effective_user(request.user, username)
 return get_courses(user, org=org, filter_=filter_)

def list_courses ( request , username , org = None , filter_ = None ) : user = get_effective_user ( request . user , username ) return get_courses ( user , org = org , filter_ = filter_ )
return a list of available courses .