It shall be unlawful for clerks of the district court or any of their deputies to write any petition or answer or other pleadings in any proceedings, or perform any service as an attorney or counselor at law in any case or cases pending in the court in which they are either clerk or deputy, or be interested in any profits or emoluments arising out of any practice in the courts of which they are either clerk or deputy, except costs.
K.S.A. 20-3133