compeltes KeyMetadata, completing keydata.py