substitute the result for language_code_re. call the function re.compile with an argument raw string '^/([\w-]+)(/|$)', substitute the result for language_code_prefix_re.
language_code_prefix_re = re . compile ( r'^/([\w-]+)(/|$)' )