As Apple has removed Python 2.x from the OS, the import of CoreGraphics in the script no longer works. First you have to install a version of Python 2.x to even get the error (which is outside of the scope of this ticket), but when you do:
from CoreGraphics import *
ImportError: No module named CoreGraphics