python script that calls an API any yields JSON

actually this script does more:

it calls the API several times until the data - paginated over multiple responses - is complete