https://github.com/ncclient/ncclient
...
If you are on Debian/Ubuntu install the following libs (via aptitude or apt-get):
sudo apt-get install libxml2-dev libxslt1-dev
sudo apt-get
...
install build-essential libssl-dev libffi-dev python-dev
sudo pip install ncclient