a contract rummy implementation in python