Python math goodness --  for eductional purposes.