import clr # pip3 install pythonnet clr.AddReference('MyDll') from MyNamespace import MyClass my_instance = MyClass()