[Python-Dev] Make extension module initialisation more like Python module initialisation