I don't profess to know exactly how a periodical differs other than having a brief look inside a periodical epub out of curiosity, but if you grab the a Calibre source code drop from
http://calibre-ebook.com/download_linux and look inside
src/calibre/ebooks/epub/periodical.py you might get some ideas.
Cheers,
Simon.