exposing nbScales in Patchwork so we remember it for un-stitching.
chasing undefined symbols when using .so files with python.