Python Create Json Array Javascript Function Call