def variables(): return dict(a=10, b=20) def test_for(): return dict() def test_if(): return dict() def test_try(): return dict() def test_def(): return dict() def escape(): return dict(message='

text is scaped

') def xml(): return dict(message=XML('

text is not escaped

')) def beautify(): return dict(message=BEAUTIFY(dict(a=1,b=[2,3,dict(hello='world')])))