grabbing handholds on the roof outside the trapdoor , she pulled herself through the opening and crawled rather ungracefully onto the flat roof , which was surrounded by the gap-toothed parapet of the tower .