he was short , bespectacled and hard of hearing , but his tenacity and good luck enabled him to become the 25th person to occupy the office of prime minister of australia , and the only liberal party heavyweight to survive the party 's 13 consecutive years in opposition .