Add python api stub
Fix navigation bug