[python3] Syntax fix