sitemap_gen.py v1.5

Updated the sitemap_gen-Script to v1.5.

Made some improvements so no errors show up when running Nikola with Python 3.
This is not yet fully Python 3 compatible but should be the version to use when porting to py3k.