fixed Python example code crashing on CSV header