Python script to automatically clean up elasticsearch indexes