I'm trying to work out how to run custom python code as a tool is loaded (to get generate options for a select parameter) and after job completion (to set metadata). It looks like the <code> tags would have been the place to point to my code, but since they are now deprecated I was wondering if someone could point me in the right direction?

Martin Aryee.