The example code at the end of the syndication_feeds documentation page has a couple of problems that I discovered while trying to get the feed validator to accept my ATOM 1.0 feed:
The encoding "utf8" is invalid; it should be "utf-8".
An author name must be specified, either for the feed itself or for each entry - the author_name parameter.
The feed document must have a self link; this is set using the feed_url parameter when constructing the feed object.
I'm attaching the example code, modified with the above suggestions. Note that I added a few line breaks in the output of the script, to prevent exceedingly long lines.