Recover getBaseInstrument for Python API

re #8001
Merge remote-tracking branch 'origin/bugfix/8001_getBaseInstrument'