This is an awesome idea and I'm amazed that someone has thought of this as well! I'm running QGIS 2.2 (not sure which version you wrote this for) and I get the above error (after adding a basic metadata file).
"'module object has no attribute 'classFactory'."
- ElementaryOS (Ubuntu 12.04)
- QGIS 2.2
- Python 2.7.3