def getValue( x ):
    """
    If x is a tuple return the first entry, else return x.

    Arguments:
        x: The object to get the value of.
    """
    if isinstance( x, tuple ):
        return x[ 0 ]
    else:
        return x