python: Fix a couple of syntax errors.