add python snippet