Fixing memory leak with rootpy 0.7.1

The latest rootpy version seems to be intolerant to not closing the root files when re-assigning variables with new files. Manually closing root files fixes issue #39.