code: def concat_padded(base, *args):
      
      ret = base
      for n in args:
          if is_string(n):
              ret = "%s_%s" % (ret, n)
          else:
              ret = "%s_%04i"  % (ret, n + 1)
      return ret
docs: Concatenate string and zero-padded 4 digit number