From http://du-alter-schwede.azurewebsites.net/index.php/2012/07/26/how-to-build-python-so-that-a-shared-library-libpythonx-y-so-is-produced/