Last steps in derivation and some tangled python using org-babel