repopick.py: Stops editor invocation when script is attached to a terminal.