This script returns the list of the top 4 ASNs for a given country based on the number of downstream ASNs they have.
It fetches data from RIPE Stat using its API.
In order to use it, just run it as follows:
# python topASN.py country
Where country is the 2-letter ISO Code for the given country.