The corporate authorities of each municipality may regulate fences and party walls. Provisions of this act do not apply to railroad right of way fences which are regulated under § 57 of the Public Utilities Act.