from openprocurement_client.client import Client
import sys


def prepare_api_wrapper(key='', host_url="https://api-sandbox.openprocurement.org", api_version='0.8'):
    return Client(key, host_url, api_version)


def get_tenders(client, offset=None):
    params = {'opt_fields': 'tenderID', 'descending': 1}
    if offset:
        params['offset'] = offset
    return client.get_tenders(params)

from openprocurement_client.client import Client


def prepare_api_wrapper(key='',
                        host_url='https://api-sandbox.openprocurement.org',
                        api_version='0.8'):
    return Client(key, host_url, api_version)


def get_tenders(client, offset=None):
    params = {'opt_fields': 'tenderID', 'descending': 1}
    if offset:
        params['offset'] = offset
    return client.get_tenders(params)

Remove unused import; split a long line of code
Remove unused import; split a long line of code
