I was looking for "*.py" files, and exclude both "build" and "bin" directories. I used this command:
find * -path "build" -prune -path "bin" -prune -o -type f \( -name "*.py" \) -print > findpyfiles.txt
The "findpyfiles.txt" still contains results started with "bin/". How to fix it?