modified App Annie python script