Consider `if appliance_from_list.status in ('Subscribed', 'Unsubscribed'):` instead of nesting 'if' statements.