Make cnx-epub python3 compatible

`next` for generators have been renamed in python3 to `__next__`.  I
just changed it to use a for loop instead which works in python2 and
python3.

Python3 does not allow mixing str (python2 unicode) and bytes (python2 str).
^ this actually helps getting less unicode decode / encode errors in python 2.