using the pexpect library for apacheds