python: Do not mix bytes and unicode strings