<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _expand_host(self, host):
 """ Used internally to add the default port to hosts not including portnames. """

        if isinstance(host, basestring):
            return (host, self.default_port)
        return tuple(host)