Shelf and graph json code bug removed

 - Shelf code in ```group.py``` file modified to remove bug.

 - graph json bug removed by converting ```ObjectId``` to ```str```.