templates of common python patterns