A basic use of mongodb with python