python3: fix bytes/str