more fixes for python 3 and gtk 3