If you change the script to use a hardcoded filename it will actually write every event into 1 file making it alot easier to import in google calendar.