No, can't be done through .xml, and with python there is the same problem like before: There's nothing like "OnProcessBuild", and processes do not count as buildings, so you can't hook there, instead you would have to cycle through all cities every round, and this is a horror for the performance.