pyinitialize argument can be either name of the shared library or the name of the python executable, to simplify life on Windows; thanks to @vtjnash for looking into this