'Return a list of keys in the metadata tag.
If the file has no tags at all, an empty list is returned.'

def keys(self):

    if (self.tags is None):
        return []
    else:
        return self.tags.keys()
