at the last moment he wrenched himself free and leapt forwards and outwards , to land in a perfect crouch on an inner courtyard roof , past the grille which guarded the palace interior from all but the birds .