update python syntax