Re #10159. Fixing python whitespace issues.
Merge branch 'bugfix/10159_python_whitespace' into develop