Dublin Core package is on PyPI so all you need is:
$ pip install dcxml
Dublin Core XML generation from Python dictionaries.