As I've learnt by trying and testing,
The process when lookup is pressed is:
1. Picard queries the Musicbrainz Server for information
2. The user-written scripts are run
3. The installed plugins are run
So, my question is if there is a way to run the scripts after the plugins?