Add python snippet