A short text based mastermind in Python