Changed unicode references to handle both Python 2 and 3