The writer talks to Claire Armitstead about his work and pays tribute to his friend Terry Pratchett.