def capitalize_nested(t):
    if isinstance(t, list):
        return [capitalize_nested(s) for s in t]
Function that takes a nested list of strings and returns a new nested list with all strings capitalized?