Creating ApiClient and moving local_request to client.py