New Array With Length Javascript Code Compiler Python