Any agreement relating to a tenancy to which this Part of this Act applies (whether contained in the instrument creating the tenancy or not) shall be void (except as provided by section 38A of this Act) in so far as it purports to preclude the tenant from making an application or request under this Part of this Act or provides for the termination or the surrender of the tenancy in the event of his making such an application or request or for the imposition of any penalty or disability on the tenant in that event.
Where—
any agreement (whether contained in the instrument creating the tenancy or not and whether made before or after the termination of that tenancy) which purports to exclude or reduce compensation under section 37 of this Act shall to that extent be void, so however that this subsection shall not affect any agreement as to the amount of any such compensation which is made after the right to compensation has accrued.
In a case not falling within the last foregoing subsection the right to compensation conferred by section 37 of this Act may be excluded or modified by agreement.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .