pygobject3: Added Python 3 support, added test

Related to #25735