code: def pp_tuple(self, tup):
          
          last_line = self.f.getvalue().split("\n")[-1]
          l = len(last_line)+1
          indent = ' ' * l
          self.write('(')
          sep = ''
          for item in tup:
              self.write(sep)
              l += len(sep)
              s = repr(item)
              l += len(s)
              self.write(s)
              sep = ','
              if l > LINE_LENGTH:
                  l = 0
                  sep += '\n' + indent
              else:
                  sep += ' '
                  pass
              pass
          if len(tup) == 1:
              self.write(", ")
          self.write(')')
docs: Pretty print a tuple