ID is null although I give an ID value from .CSV file

This looks reasonable to me. Maybe try adding some print statements to see if it fails? If the id variable in your code is None, then your CSV reader is somehow not picking up the column from the file.

If it's set correctly in your code, maybe try naming the key something else, like, "response_id"? (Not sure why id would be causing a conflict here, but if that's the case, we can investigate further.)