python cribbage framework