Altered open() of output file