if (attributes and key in attributes) or not attributes:
print(tab * counter + "%s: %s" % (key, value))
elif isinstance(value, list):
if (attributes and key in attributes) or not attributes:
print(tab * counter + "%s: %s" % (key, value))
elif isinstance(value, list):