Indeed I understand that nesting_level is designed to handle reentrancy during the import sequence, but I don't know how it works exactly. I shall investigate.