updated python port to the newest version