Python: Add __contains__ method to Repomd() class