Export openedx image with modified python files

I have some modified python files
is there any way to export them to the new server
I tried to build the image and then load it on the new server
but the new server does not load modified python files