def findInvalidUID():
 guess = SYSTEM_UID_MAX
 if (pwd is not None):
  while True:
   try:
    pwd.getpwuid(guess)
   except KeyError:
    break
   else:
    guess -= 1
 return guess

def findInvalidUID ( ) : guess = SYSTEM_UID_MAX if ( pwd is not None ) : while True : try : pwd . getpwuid ( guess ) except KeyError : break else : guess -= 1 return guess
by convention .