find $2 -name "*.py" -type f -exec grep -H -i -n "$1" {} \; |  grep -v "env/lib"
