added python binding for registerPlanCallback