in static/downloads/ezt.py [0:0]
def _execute(self, program, fp, ctx):
"""This private helper function takes a 'program' sequence as created
by the method '_parse' and executes it step by step. strings are written
to the file object 'fp' and functions are called.
"""
for step in program:
if isinstance(step, StringType):
fp.write(step)
else:
method, method_args, filename, line_number = step
method(method_args, fp, ctx, filename, line_number)