Exception when not running Python 2.7