Extract, replace, and transform specific elements of Python lists (arrays) https://from-locals.com/python-list-select-replace/