Hmm. Is the answer maybe template functions? I was able to define a sum() function that appears to work (once I realized that args are passed in as unicode and needed to be converted before being added), but am a python newbie so the extraction of the Ns from an arbitrary number of tags is still befuddling me...
|