Running Debian Squeeze and GNOME 2; I tried changing the line, and got this error:
[~/Downloads/recipe-2.4.1+419] $ ./bin/caffeine
Traceback (most recent call last):
File "./bin/caffeine", line 40, in <module>
import caffeine
File "./bin/../caffeine/__init__.py", line 23, in <module>
from gi.repository import Gtk, Gio
ImportError: No module named gi.repository