The dedicated Deep Purple website TheHighwayStar.com
credits words and music to Ritchie Blackmore, Ian Gillan, Roger Glover and Jon Lord, with Gillan obviously supplying the lyrics. It remains to be seen if Blackmore realized he was the subject of the song, as it is by no means as obvious as "Smooth Dancer."
The same source says several edits were made, including a live version which begins with Gillan reciting "The Teddy Bears Picnic
"; this was recorded in Phoenix, Arizona on May 30, 1987.
Alexander Baron - London, England, for above 2