IIRC, Shaw was also a writer, and wrote many of the lines himself.
He was great as the Russian assassin in From Russia with Love.