Checkout metadata.py from borys.
Replace string with dictionary.