Button and context menu options on component through GhPython

Use case 2: (or more of a UC1 2nd alternative solution)

2018-05-29%2000_07_54-Greenshot

This is a thread I created not long ago about the same topic:
https://discourse.mcneel.com/t/ghpyhon-access-to-grasshopper-gui/62240