More updates to fix cross-calling python-to-js
Fixed issue with local CFUNCTYPE and function going out of scope causing crash