Find all files with the extension ".py" and execute a command to replace all lowercase and uppercase letters and numbers with the same characters in uppercase.
find . -name "*.py" -exec sed -i 's/[a-zA-Z0-9]\+/\u&/g' {} \;