Elastic Search to CSV Python Script