Add new OOP interface.
Merge branch 'py-rest-api'