python method for finding favorite matches