Python3 rework: replace unicode() with str.decode()