Nm planner - fix this api

You have problem with indentation here: you use TAB to indent, but we require 4 spaces. It is particulary critical for python code as the indentation is meaningful.