flake8 fixes
`copy` option for moving_average
Fixes for RejectedTakeoff

 1. the test for the RTO was performed on the smoothed accel_lon
    (moving_average modified the input array in place): use added option
    to copy input array first
 2. the original mask was not applied to the smoothed data, which means we
    interpolated values from unmasked spikes were treated as legitimate
    acceleration and potential RTOs.