Attempt to auto-convert python functions into js callbacks.