[1.7.x] Fixed flake8 indentation.

Backport of ab431fbd4f from master