Updated average with weighting and taking in list
Fixing pyc commit