President Hollande is an inspiration to the Labour leader. But he may also turn out to be a cautionary tale.