I check it with this code and it work fine with Python 2 and 3
from __future__ import unicode_literals
import types
import collections
var = ["a", "b", "c"]
if isinstance(var, collections.Iterable) and \
not isinstance(var, types.StringTypes):
return var