Merged bf/sliding_average.c fix, python binding updates