A Python package to preprocess time series