Jack Lavery elected in Sydenham by-election