python: Fix coding style to match

Commit 2680b37802f0364b6eac1f5bf0f1f3bbb2552133 didn't use the
same coding style as the rest of the file.