30c30,32
< import sys, types
---
> import math
> import sys
> import types
629a632
> width = int(math.ceil(math.log(len(value))/math.log(10)))
631c634
< v._maybe_set_parent(self, "%s%d" % (attr, i))
---
> v._maybe_set_parent(self, "%s%0*d" % (attr, width, i))