re #7208 wrapped arrays in numpy and fixed getTofs

GetTofs fails due a a line deleted by mistake (I'm suprised it compiled).
Wrapped getweight, getweighterrors and getTofs in numpy arrays
Added py unit test for getTofs