Include changes to g4py reported by Thomas Ruf. The changes are added to the file g4py.patch