'Return the full path to a given file for a given course.'

def path_to(self, course_id, filename=''):

    hashed_course_id = hashlib.sha1(course_id.to_deprecated_string()).hexdigest()
    return os.path.join(hashed_course_id, filename)
