def vision(ghost): if ghost.inHeaven == True: ghost = Ghost() print("While sleeping, you have a strange dream....") print("A ghostly figure appears in front of you and begins to speak.\n") ghost.display_message()