fix backward compat

Rationale: https://mail.gnome.org/archives/commits-list/2012-November/msg01084.html

Sorry for breaking the py2 test in #212.