Based on this discussion, the following code using servermanager.ProxyManager().GetProxyName(...)
function can be used:
from paraview.simple import *
layouts = GetLayouts()
for i,l in enumerate(layouts):
print("Layout name:", l[0]) # This prints "MyLayout"
views = GetViewsInLayout(layouts[l])
for j,v in enumerate(views):
print("View name:", servermanager.ProxyManager().GetProxyName(v.SMProxy.GetXMLGroup(),v)) # This prints "MyView"