Native python searching instead of grep