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