'Returns a Python-style dict of the keys/values.
Largely internal.'

def get_keys(self):

    key_fields = self.table.get_key_fields()
    key_data = {}
    for key in key_fields:
        key_data[key] = self[key]
    return key_data
