Ported API changes to python.
Merge branch 'api_update' of https://github.com/XIA-Project/xia-core into api_update