@staticmethod
def check_keys(data, keyset):
    """Check if data has all keys it should have"""
    for key in keyset:
        if key not in data:
            raise KeyError('Key %s not in data' % key)
    return True
