Script for exporting csvs from ODK Aggregate on Google App Engine

Hi,

Instead of manually exporting csv files from the ODK Aggregate on Google
App Engine, I wanted to write a script that does the same for me
periodically.
Could anyone please suggest a way so as to how to proceed with it?
If anyone has an existing script for the same, that would be really great.

Thanks!