updates to esearch.py and created elastic_cleanup.py