Porting to ST3 with fallback to ST2
Console/stin fixes for py3 via merging verhaeg's branch.