remove trailling spaces

with:
find . -type f -name *.py -exec sed --in-place s/[[:space:]]+$// {} \+