cleanup the clt snippet for python.