Python - changing display mode of all views

I have this code for changing all model views to a particular display mode:
(example in this case for “Shaded”, you can substitute whatever mode you need)

import rhinoscriptsyntax as rs
views = rs.ViewNames()
modes=rs.ViewDisplayModes()
viewtype="Shaded"
rs.EnableRedraw(False)
if viewtype in modes:
    for view in views:
        rs.ViewDisplayMode(view, viewtype)

–Mitch