python game class