keyspaces actually is a dict, so this error is expected