You probably want `host_port.strip().split(':')` to allow for spaces around the commas