remove the snippet of dot for python