update python syntax and indent