1. Import readline only when interactive mode