I wish the csv.php page had more code samples!
We probably won't make any changes to that page. We've started adding Stat data to the REST API:
http://developer.wordpress.com/docs/api/1/get/sites/%24site/stats/
Keep an eye on our Developer blog, we'll probably post about the new Stats endpoint soon!