Update console.py

fix NameError: global name 'log_both' is not defined
Merge pull request #185 from Thermionix/patch-2

Update console.py