Added sum and mean per block to Python algorithms.

Change-Id: I48ffc650726f66d9fb0ae34dd876b92845c99434
Merge topic 'more-per-block-algs' into master

14a9c306 Added sum and mean per block to Python algorithms.