using csv module to parse correctly