Add writing of a ROOT file with a TTree

Most of this was taken from:
http://wlav.web.cern.ch/wlav/pyroot/tpytree.html

Unfortunately TTrees are ugly objects to interface with in Python...