Restore python file