Script directory and additional Main Menu action

Thanks for your reply.

How can i run the xbmc.executeJSONRPC command? I have tried to import xbmc like described in your howto, but get a error:

osmc@osmc:~/.kodi/userdata$ python test.py
Traceback (most recent call last):
  File "test.py", line 3, in <module>
    import xbmc
ImportError: No module named xbmc