Find all files with the extension ".py" in the current directory, then find all files that are not in a subdirectory, and finally change the permissions of those files to 755.
find . -name "*.py" | grep '^./[^/]*$' | xargs chmod 755