That's what vonmises does: https://github.com/scipy/scipy/blob/master/scipy/stats/distributions.py#L5920