How to fix "F821 undefined name 'unicode'" error when running tox

If you get this following error when running "tox -e pep8":

...
# F821 undefined name 'unicode'
if isinstance(config, str) or isinstance(config, unicode):
...

Modify the tox.ini as following to fix it:

[flake8]

builtins = unicode

Comments