Insert a subfunction in the middle of command?

import rhinoscriptsyntax as rs

ort = rs.Ortho()
rs.Ortho(False)

def on():
rs.Ortho(True)
rs.Command(‘_Leader pause’)

How to insert the open orthogonal effect in the middle of the command command?