Python 2.x fixes.
Fix terminal module for python 2.x
Bump version.