Right now you are trying to change to the object itself, you need to append an instance of the object in your views list.
if page.route == "/login_view":
page.views.append(login_view())
I believe just adding the parentheses to instantiate an instance of the object should fix your issue.