More Python 3 fixes, mostly about string/byte/unicode handling.