Add unicode 'u' function compatibility in python 3