def d2kvlist(d):
    "\n        d = {'GPSImgDirectionRef': 'M', 'GPSVersionID': b'\x02\x03\x00\x00', 'GPSImgDirection': (21900, 100)}\n        pobj(d)\n        kl,vl = d2kvlist(d)\n        pobj(kl)\n        pobj(vl)\n    "
    kl = list(d.keys())
    vl = list(d.values())
    return kl, vl
