nl: substitute the result for block_re. call the function re.compile with an argument raw string "^\s*endblocktrans$", substitute the result for endblock_re.
code: endblock_re = re . compile ( r"""^\s*endblocktrans$""" )