I have a dict and would like to remove all the keys for which there are empty value strings.
metadata = {u\'Composite:PreviewImage\': u\'(Binary data 101973
For python 3
dict((k, v) for k, v in metadata.items() if v)