Fixing failing tests under Py3K

This fixes the import of sitemap_gen in tests under Python 3.
It makes the check for the Python version run under Python 2.6 - this version did not know about the ``major``-attribute on ``sys.version_info``.

And it includes a script I use for semi-automatic testing of importing and building Nikola sites.