Replaced requirement for pexpect with pymongo