Don't depend on gnome-common

It's not worth depending on it just for compile warnings on obsolete
code.
Use python2 shebang

Some distributions have switched to python3 as default and our code
breaks because it's python2 specific. Follow the PEP 394
recommendation.