code: def get_parities():
      
      parities = []
      s = pyserial.Serial()
      for name, value in s.getSupportedParities():
          parities.append((value, name,))
      return tuple(parities)
docs: Returns supported parities in a Django-like choices tuples.