copy of top of yahmm.pyx package