if a[0] is None:
    start = next(ele for ele in a if ele is not None)
for ind, ele in enumerate(a):
    if ele is None:
        a[ind] = start
else:
    start = ele
print(a)
Replace None in list with leftmost non none value