If your key starts with live_... it means you are using live mode and if it starts with test_... it means you are using sand-box mode. Also there it a third parameter called base_url which is optional ...
Official Python client library for Klogs Payment Gateway API. This package provides a simple and intuitive interface for integrating payment processing functionality into your Python applications.