A framework for efficiently composing hand-written OpenCL from Python