Fix string conversion error under Python 3.x

Define unicode() as an alias for str() in Py 3.x.

MD-19331
Reviewed-by: Carles Pina