re-adding console.py (deleted by mistake)