Fixed ``TypeError: Item in ``from list'' not a string`` error in Python 2.