At the command line:
$ pip install os-xenapi
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv os-xenapi $ pip install os-xenapi