Labour's victory in Batley and Spen shows the party is learn