Fix computation of version for compatibility

Change-Id: Iebe1987764d7eb6a3e36e1b0bdd37492f1f643c2
Merge topic 'improve-python-doc' into next

23846c1 Fix computation of version for compatibility