Execute python script on completion of Media Render Queue render

Im hoping to run a python script with arguments at the completion of each rendered shot within the media render queue. Ive been looking at console commands and if i can run an event which triggers something, which looks like i could do a custom event which triggers something within the level blueprint. But was hoping for something a little cleaner. Any ideas would be greatly appreciated