Add new pyexpect module and use in shell magic