Should use `foo.format()`? I think you can get away without zfill too? e.g. `"{0:0{1}}".format(foo, self.length)`