These `len(repr(` calls are going to be pretty expensive.  It should be the commented out one while the other one remains.