set up working verison of repeat_search.py