[python] Add support for Python 3 usage from QML

Prepared change for when we can allow Python in Harbour.

**Do not merge yet.**