If you look at the source code for pythonista s webbrowser module, it is based on UI.WebView. use a webview, which has a close method.
No one has replied
There is the ctypes module though, so if you want to call C functions, then you can do that with ctypes. You can even call functions from Python's C API, if you really want to, but that isn't very useful in many cases.
Thank you for all of the responses
Python 2.7.14 is now available for your desktops and laptops... https://www.python.org/downloads/release/python-2714/
Also Python 3.7.0 alpha 1 should be out any day now https://www.python.org/download/pre-releases/
Oops! Looks like something went wrong!
You may only upload PNG, JPG, or GIF files ()