Hachi is a Python library to interact with XBees. http://hachi.readthedocs.org/