Use csv module to read input instead of splitting ourselves