I, are you using the python or the PowerShell script?
I had the same issue, after setting the 3961 value and trying to enable the internal mode I got the same error, just like you.
After closing the command line, turning off the PS3 (unplugged it from the wall socket), disconnect and reconnect...