Create a first python test.

Does the loop but the result is not what expected a debugging of the state-observation should be necessary.
Improve the initialization of the signals.
Correct the indexation of the contacts.