Some python snippet