python api for reports analytics