Python Distribution Of Array In Math