The correct bricks API is bricks.getWidgetById(id), not bricks.app.find_widget_by_id(id). Replaced all 11 occurrences.