Mysql Find Duplicate Rows In Python