Refactored parallel histogramming so that data is not pre-loaded in all cases.
Ported test_expression, fixes some PEP8 problems.