Android lets you add a Javascript Interface, that will let you use "window.interfacename.myfunction()" to call a function in the Java program.
Is there any similar feature that allows a PyGTK with embedded webkit browser to have similar functionality, to call a specific Python function from Javascript?