Here are you are assuming the stddev_types contains only one item? Because in general it can be a list of more than one.

Just to be general you can do:
stddevs = []
        for _ in stddev_types:
            stddevs.append(vals)