reviewed here: https://codereview.appspot.com/9749044/
Command-line samples for producing reports with the Analytics API. api: analytics keywords: cmdline