xml_parser_repomd: More tests
repomd: Refactoring + python fuctions + etc.
py: Fix memory leak.
createrepo_c+mergerepo_c: Fix bug with repomd gen.