Python and pexpect app for building switch configs