the default value for the mode argument to open() is already 'r'