No, you can't just copy the Sage (Python) library to another folder and expect things to work. Sage comes with a bunch of C libraries and external programs that it needs to work. Basically you'd need to redistribute Sage in order for program.py to properly run.