PY3: ensuring that all strings written to a binary file are bytes using six.b