resource-native: Add Python wrappings around res_set and res