Python readline and iTerm window switching