client_factory uses keyword arguments instead of assigning attributes

Use def with parentheses when there are parameters.