Fix PyGI deprecation for positional arguments