Use csv reader instead of .split('\n')