some python snippet.