Artificial Intelligence for the Internal Democracy of Political Parties