Probably will have to use some Python 2 & 3 adaptation here - `str` in Python 3 and `unicode` in Python 2. I've done this a few times, but I think it is not quite provided by `six`.