How To Reduce Array Size In Python