def filterPairValues(values):
 retVal = []
 if ((not isNoneValue(values)) and hasattr(values, '__iter__')):
  retVal = filter((lambda x: (isinstance(x, (tuple, list, set)) and (len(x) == 2))), values)
 return retVal

def filterPairValues ( values ) : retVal = [ ] if ( ( not isNoneValue ( values ) ) and hasattr ( values , '__iter__' ) ) : retVal = filter ( ( lambda x : ( isinstance ( x , ( tuple , list , set ) ) and ( len ( x ) == 2 ) ) ) , values ) return retVal
returns only list-like values with length 2 .