You will need to create a web API to expose your Python API such as using the Flask Python web server. You can then call the web API from Self.