'Prints the contents of a wrapper string iterator when iterated.'

@staticmethod
def print_generator(app_iter):

    print (('*' * 40) + '    BODY')
    for part in app_iter:
        sys.stdout.write(part)
        sys.stdout.flush()
        (yield part)
    print ''
