Fixing print to csv