Hey everyone, so the answer which was accepted in the seminar was in fact the Dimroth rearrangement. Here's the mechanism I drew out for it. Nucleophilic attack on methyl iodide sets the scene for a hydroxide to attack the intermediate structure. Once hydroxide attacks you get electrophilic ring opening and with the electron withdrawing nitro group in place, a resonant structure facilitates formation of a temporary single bond which allows the groups to switch. You then get ring closure and the N in the pyridine ring ends up being replaced with the N from the initial NH2!
Thanks everyone for your suggestions and input. If anyone would like me to draw out a more complete mechanism please let me know. And if anyone wants to consult the literature on this mechanism please see the Elsevier book 'Strategic Applications of Named Reactions in Organic Synthesis.'
(Also sorry if my handwriting isn't clear)