A parallel grep command in python