Json Import Javascript Functions With Parameters Python