What influenced medieval politics