Write python to open files.