Add handling of DynamicObject
Fix up formatting issues with test_object.py