Update python syntax.