Search only in file type grep

Limit recursive search to .py files only

grep -r --include='*.py' 'import os' /srv/app/