fixing write to be inside of with open block, this was causing the I/O operation on closed file
fixing write to be inside of with open block, this was causing the I/O operation on closed file

ros/ros,ros/ros,ros/ros