Python Fixed Length Array Javascript Function Call