def linexand (listoflists,columnlist,valuelist):
    if type(columnlist) not in [ListType,TupleType]:
        columnlist = [columnlist]
    if type(valuelist) not in [ListType,TupleType]:
        valuelist = [valuelist]
    criterion = ''
    for i in range(len(columnlist)):
        if type(valuelist[i])==StringType:
            critval = '\'' + valuelist[i] + '\''
        else:
            critval = str(valuelist[i])
        criterion = criterion + ' x['+str(columnlist[i])+']=='+critval+' and'
    criterion = criterion[0:-3]         # remove the "and" after the last crit
    function = 'filter(lambda x: '+criterion+',listoflists)'
    lines = eval(function)
    return lines
Parse arguments and run shell.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/linexand--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/download_appstats.py/main