'Print a progress meter while iterating over an iterable. Use it as part
of a ``for`` loop::
for item in self.print_iter_progress(big_long_list):
self.do_expensive_computation(item)
A ``.`` character is printed for every value in the iterable,
a space every 10 items, and a new line every 50 items.'

def print_iter_progress(self, iterable):

    for (i, value) in enumerate(iterable, start=1):
        (yield value)
        self.stdout.write(u'.', ending=u'')
        if ((i % 40) == 0):
            self.print_newline()
            self.stdout.write((u'    ' * 35), ending=u'')
        elif ((i % 10) == 0):
            self.stdout.write(u'    ', ending=u'')
        self.stdout.flush()
