[Python-Dev] isolating import state during tests