Correct the name of the device in the python file.

It must be the same than the one in the cpp.
Error catching more verbose.