ho wilfully attempts in any manner to obstruct, pervert or defeat the course of justice in a judicial proceeding,(a) by indemnifying or agreeing to indemnify a surety, in any way and either in whole or in part, or(b) where he is a surety, by accepting or agreeing to accept a fee or any form of indemnity whether in whole or in part from or in respect of a person who is released or is to be released