How to fix pytest import-mode=importlib duplicate module issue?