I didn't write python code for many years, so my question may be silly and simple. I load json data:
import json
data = json.loads('{"hello": "world"}')
In python 2 I should access hello key this way: data[u'hello']. There is an additional u symbol because keys are Unicode.
In python 3: data['hello']. Unicode strings by default.
What should I do if I want to write portable code?