Source code from the XeroAPI python library as published on pypi, as the original authors git repo seems to have vanished.