Python Script for adding closed ticket timestamps to a custom text field in Edgewall Trac (version 0.12.6)