enable buyapple.py example to run without DISPLAY