changed header of printout to be compatible with python csv module