Replaced deprecated/removed 'add_data' call with 'data' property assignment (for Python 3.x)