Use bytes for Python 3. It's just an alias to str in Python 2.