Text-based Python imitation of MasterMind