python fit_tail, replace_by_tail ==> fit_tail_depr, replace_by_tail_depr c++ set_tail_from_fit ==> fit_tail
The c++ version of the tail fit is wrapped to python. I also changed slightly the code so that when replace_by_fit is true the data is changed all the way to the end of the Matsubara axis not only on the interval where the fit was done.
uncommenting the resize fix the issue on linux. valgrind reports no error any more. What was the problem ?