Overhaul of hstfos_spec.py