In Python 2 I used the SQL query of the following form
SELECT REPLACE(SUM(valor), '.', ',') FROM pedidos
and the result was thus 1790394.95
But in Python3 I run the same query and the result comes like b'1790394,95 '
I'm using Python3 and MySQL 5.7