Change the computed fields mechanism to loop over the fields in Python

This should allow for more sophisticated, albeit slower, demos.