Updated the Python library to the latest API spec.