Fix python API and getting started examples