All, Is there a pretty printing utility for Python, something like Tidy for HTML? That will change: xp=self.uleft[0]+percentx*(self.xwidth) To: xp = self.uleft[0] + percentx * (self.xwidth) And other formatting issues.