The new version of processing use getObject instead of getobject:
processing.getObject(Couche_compteurs_individuels)
Look at How to terminate Python scripts in Processing framework properly?How to terminate Python scripts in Processing framework properly?