politics in the middle ages