Check if Service Mode/Non Service Mode with python API