'Iterator that prints the contents of a wrapper string.'

@staticmethod
def print_generator(app_iter):

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