updated python snippet