Petition of contest. Any person wishing to contest the results of a primary or election shall file a petition with the superintendent of elections.