processing NextToken for select queries over 2500

I was just working on a cli tool for SimpleDB: 
https://github.com/makesites/sdb

Mainly I'm using it to backup my databases so going over the 2500 limit of a select query is very likely. 

I've introduced a convention where if the returned results match the max results (2500) and there is a NextToken, then the script will automatically process the next batch and aggregate the results.