start python code for hierarchical single link - It reads in the array properly
for loops to iterate through data