add sitemap.py
reorganize code, and update category_test.py