Add file handling to app engine code