use tuple result with MySQLdb