had to pass an IO object to Spreadsheet.opn