added python code, use mongodb now