Dallas mayor switches parties