The install() method in the simplecmd gets called when a user goes to File > Install AppUI (from Qube). The install method is different for every app from which we provide in-app submission systems. For nuke, it dumps a python script into ~/.nuke/qubemenu.py. Nuke sources files in this path as part of its normal operation & in doing so, creates a pull-down menu in its own UI.