By the looks of it, you never declared
_mode. It also looks like you may be trying to do this similar to how it is done in Python.
To fix this (assuming you want
_mode to be accessible to the rest of the functions defined under
Etat), try doing this:
_stat = state
_mode = mode
You can put
_init, but it is not entirely necessary. Personally, I do it to help myself remember which functions belong to which class.