Whoever accepts or obtains or agrees to accept or attempts to obtain, from any person, for himself or for any other person, any gratification whatever, as a motive or reward for inducing, by the exercise of personal influence, any public servant to do or to forbear to do any official act, or in the exercise of the official functions of such public servant to show favour or disfavour to any person, or to render or attempt to render any service or disservice to any person with the Federal or any Provincial Government or Legislature, or with any public servant, as such, shall be punished with simple imprisonment for a term which may extend to one year, or with fine, or with both.