adding python snippet and contrib directory