Create view filter in Revit

This was discussed here: Create and add view filter (ParameterFilterElement)

Also, Dynamo now has OOTB nodes that can do that so no need for Python.