``urljoin`` теряет ``path`` у ``base``:

    >>> from urlparse import urljoin
    >>> urljoin(base='https://uploadcare.com/api', url='files/123')
    'https://uploadcare.com/files/123'

Я переписал ``_build_api_path`` и ``_build_api_uri``.