Volume step size setting

With my remote 100 volume steps are just too many. I’d settle for 10 or 20. I’ve found an article Volume step size setting but I cannot get python to import the xmbc library. How can I install the xbmc.executebuiltin() function?

osmc@osmc:/usr/share$ python
Python 2.7.9 (default, Mar  1 2015, 13:48:22)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmbc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named xmbc
>>> import osmc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named osmc
>>> import kodi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named kodi
>>>

import xbmc will be successful if the script is run from Kodi

S