Hey can explain me the code in the haxe script and the corrispondence in python script of the node on init??
Are you trying to make your own logic node? Have you checked this page (https://github.com/armory3d/armory/wiki/logicnodes)?
As you browse through the Armory code base, you will encounter two things: (1) the actual Haxe implementation of a logic node (at runtime …), and (2) the Python code which introduces it to the Blender environment.