Added example record_objects.py.