some python functions about poker game.