Fixed tab bug in pynances.py, in case Edit window is not there.