Python Scripts for MongoDB Data processing