minor changes to junction_from_window.py