location_in = 'London, Greater London, England, United Kingdom'
loci = location_is.spilt(', ')
location_out = []
while loci:
    location_out.append(', '.join(loci))
loci = loci[1:]
print(location_out)
Python - convert comma separated string into reducing string list