python code to simulate the game Set