render feed file with data

def _generate_feed(self, feed_data):
        """ render feed file with data
        """
        atom_feed = self._render_html('atom.xml', feed_data)

        feed_path = os.path.join(os.getcwd(), 'public', 'atom.xml')

        with codecs.open(feed_path, 'wb', 'utf-8') as f:
            f.write(atom_feed)