an alert takes a component as the content argument
a call to self.add_component(MPsuccess)
is not a component
It should probably be
result = alert(content=MPsuccess,
title="An important choice",
large=True,
buttons=[
("Yes", "YES"),
("No", "NO"),
("Neither", None)
])
docs: