Generate Subarrays Of An Array Python Vs List