With -exec … \; find starts the command once per file. That is slow on thousands of files.
find . -name '*.py' -exec grep -l 'TODO' {} +
find . -type f -name '*.sh' -exec chmod +x {} +
A plus sign instead of the semicolon hands the command as many file names as fit on one command line, similar to xargs. {} must come directly before the +. When there are very many files, find starts the command more than once. File names with spaces are safe, since no shell splits them.
Further reading: find manual page