General python scripts using mongodb