Working py to js callbacks