More tolerant python-grep