test/python_kernel_test.py: make reference_solution implementation slightly cleaner
test/python_kernel_test.py: make reference_solution implementation slightly cleaner

Technologicat/pydgq,Technologicat/pydgq