Almost simple geodesics on the triply-punctured sphere