code: def valid_max_age(number):
      "Validate a cookie Max-Age"
      if isinstance(number, basestring):
          try:
              number = long(number)
          except (ValueError, TypeError):
              return False
      if number >= 0 and number % 1 == 0:
          return True
      return Falsf valid_max_age(number):
      "Validate a cookie Max-Age"
      if isinstance(number, basestring):
          try:
              number = long(number)
          except (ValueError, TypeError):
              return False
      if number >= 0 and number % 1 == 0:
          return True
      return False
docs: Validate a cookie Max-Age