def is_list(self, name):
    'Return True if variable is a list or a tuple'
    return communicate(self._get_sock(), ('isinstance(%s, (tuple, list))' % name))
Return True if variable is a list or a tuple
def is_list(self, name):
    
    return communicate(self._get_sock(), ('isinstance(%s, (tuple, list))' % name))