Remove conditional for python < 2.5

This code is now for modern times.
A few more tidy ups from flake8
Get rid of a conditional for recipes in serializations

This was in there for making certain kinds of testing easier.
That testing is no longer done, and is also a mode we do not
want to allow or encourage: a recipe is a list of tuples of
strings: there are never bag objects in there.