Python Generate Array Of Length In Javascript The Relational Test