Hi Damian,
do you want to add the code produced for this analysis to metrics-tasks.git? This could happen now or when all analysis for this ticket is done. I'm aware that it may take a bit of time to clean up code (though I haven't looked at your code). But the advantage is that people who're planning to do a similar analysis can `git grep foo` metrics-tasks.git and find your code. If the code is only on a Trac ticket, it's very likely lost once the ticket is closed.
https://gitweb.torproject.org/metrics-tasks.git/blob/HEAD:/README
You're certainly welcome to. My conclusion from writing it was actually that Stem needs some helper methods to better handle the prefixed 'private' exit policy...
https://trac.torproject.org/projects/tor/ticket/10107
If we had that then the script would have been pretty trivial.
Cheers! -Damian