Modified python code to use comma-separated line, added rainfall data