Python script for converting csv file to json