Javascript Limit Array Size Python Install Requests