Update file - python