No officer or employee of such city shall discharge, or degrade, or promote, or in any manner change the official rank or compensation of any other officer or employee, or promise or threaten to do so for giving or withholding any contribution of money or other valuable thing for any party or political purpose, or for refusal or neglect to render any party or political service.