client_factory uses keyword arguments instead of assigning attributes

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.