Avoid using unicode in the stub code
Fix py3k compatibility issue