Not so much info about what you are using, but sometimes, the badformatexception
is caused because your project configuration is not compatible with the dll it’s complaining about, change it to x86 or to x64.
solved Using phyton.exe in .net c# controller: