Get Minimum Value Of Array Javascript Push Method In Python