Fixed iterator for python 3

Small fix for an issue which prevented running `collectstatic` on Python3 - iterator never receives str("") because it is binary in Python 3.