Add key-word arguments to layout.Layout
Add key-word arguments to layout.Layout

You can now specify options for the <body> tag

example:
layout.Layout(None, templatefile, , bgcolor="#fffacd", onLoad="preloadImages();")

Will generate output including:

<body onLoad="preloadImages();" bgcolor="#fffacd">

samtaufa/countershape,cortesi/countershape,cortesi/countershape,mhils/countershape,mhils/countershape,samtaufa/countershape