simple so_steps function to implement python API