Show query for MySQL from Python