In environments without py27, gertty was unable to run. This patch addresses all the Py3K issues discovered when getting gertty running in a py34-only environment. Change-Id: I32a06f9768bdeaf8e95ddf9a9e54c79059fbaa2f