Fix python notebook commands order