/usr/lib/python2.7/dist-packages/gd.py is in python-gd 0.56+dfsg-3.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/python2.7/dist-packages/../../../share/pyshared/gd.py
/usr/lib/python2.7/dist-packages/../../../share/pyshared/gd.py