title: conditionally import a .py or a .pyd module?
body: <p>I have two modules, a "module.py" and a "module.pyd" that implements the same functions. Both modules are in the same folder. I'd would like to create a unit test that tests both the python and the extension modules against some data. </p>
  
  <p>Is there any way in which I could conditionally import the .py module or the .pyd? </p>
  
  <p>I could do some renaming before importing, but I would prefer a solution like being able to do import “module.py” or import “module.pyd”</p>