def iterate(data, indentation):
if isinstance(data, dict):
for key, value in data:
print(key)
if is_iterable(value):
iterate(value, indentation+indent)
else:
pass
from collections import Iterable
def is_iterable(data):
if isinstance(value, Iterable):
return True
else:
return False