I saw you write your own window_taper function. Well this should be avoided since there are already solutions in obspy and numpy.