def generate_course_key(org, number, run):
 default_store = os.environ.get('DEFAULT_STORE', 'draft')
 return CourseLocator(org, number, run, deprecated=(default_store == 'draft'))

def generate_course_key ( org , number , run ) : default_store = os . environ . get ( 'DEFAULT_STORE' , 'draft' ) return CourseLocator ( org , number , run , deprecated = ( default_store == 'draft' ) )
makes a courselocator from org .