this seems like a special case of ``core/index.py/MultiIndex/_get_loc_level`` which is a big monster....

your routine nicely encapsulates things and is pretty...should maybe be a method of MultiIndex? (in the future maybe integrate with ``_get_loc_level``, but I think that has lots of special cases