python-nbxmpp is a Python library that provides a way for Python applications to use the Jabber/XMPP network in a non-blocking way. This library was initially a fork of xmpppy, but is now using non-blocking sockets.
Run the following:
sudo python setup.py install
To use python-nbxmpp, import nbxmpp in your application. Have a look at the Examples in the doc folder.