No person convicted of a misdemeanor under this title shall be a candidate for any elective office or act as a lobbyist for a period of four years following the date of the conviction unless the court at the time of sentencing specifically determines that this provision shall not be applicable. A plea of nolo contendere shall be deemed a conviction for purposes of this section. Any person violating this section is guilty of a felony.