copy data to python object