"External" memory for program memory?

Rewrite the program (in Python, or whatever) to run on a PC (or a RaspberryPi or a Yun) and just use the Arduino to interface with the hardware.

...R