'If host=None, return the current server list (dict).
Else, return the host\'s password (or the default one if defined or None)'

def get_password(self, host=None):

    if (host is None):
        return self._password_dict
    else:
        try:
            return self._password_dict[host]
        except (KeyError, TypeError):
            try:
                return self._password_dict['default']
            except (KeyError, TypeError):
                return None
