Ticket #86: brute force debugging, mostly fixing python3 byte/string issues