averages.pyx works! Also added avgs.py which does the same thing, but in python. Cython gives a 4x speedup. My old way of doing it, however, was super slow because I'm dumb...