Find all files in the current directory and its subdirectories with a ".py" extension, and replace all strings beginning with a "$" with "replace_string".
find ~ -type f -iname '*.py' | xargs sed -i 's/[$][a-zA-Z0-9]\+/replace_string/g'