Lewis Hamilton has praised Brazilian authorities for handing three-time Formula One champion Nelson Piquet a large fine for using racist and anti-gay language in comments about the Mercedes driver.