Or if you want to avoid a 3rd party dll, you could access a Windows Scripting Component that contains your Python code with COM.