Minor formatting changes in shared.py
Update api.py to take account of the new ObjectType codes