Mi patch 2 revert utility function

Comply with xsd+ namespacing
Mi patch 2 fix loglevel type
Mi patch 2 delete unecessery type
Patch 2 : move mi check into list_sessions

Keep cmd_list a lot more clean