generalize ts_hops.py
move files