yeah the other lines in the condition should also be indented, double indentation like we do it in the c++ code. PEP8 is not clearly defined here. I guess autopep8 had problems seeing that the if statement is more then 2 lines long.