2ace94d fix errors under Python3

Authored and Committed by kparal 4 years ago
    fix errors under Python3
    
    unicode built-in function is not defined (and not needed) under Python3.
    Also fix on wrong Error name.