update code of python