docs: def neg_int(i):
      """ Simple negative integer validation. """
      try:
          if isinstance(i, string_types):
              i = int(i)
          if not isinstance(i, int) or i > 0:
              raise Exception()
      except:
          raise ValueError("Not a negative integer")
      return i