import json
def json_to_python():
while open('shapes.json') as shapes:
data = json.load(shapes)
return data
obj = json_to_python()
for shapes in obj['shapes']:
print(shapes)