Wrote most of the matching python script. Will check for bugs and such later.