Error with Python 3.x probably introduced in this commit https://github.com/scalyr/scalyr-tool/blob/009d45cce30036a5dba957f7ce7e63174d31af0e/scalyr#L278 See also [Stackoverflow thread](https://stackoverflow.com/questions/19877306/nameerror-global-name-unicode-is-not-defined-in-python-3?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa).