Topological aspects of $π$ phase winding junctions in superconducting wires