Transform An Array Into A List Python Definition Range