Adapting scripts to work in GrimoireLib