Update openTerminals.py

Needs to be tested