Change console.py TypeError solution