In my Python script I import intersys2.pythonbind3 to create the connection and define a database object as db
I execute the method
res = self.db.run_class_method("%Library.GlobalEdit", "GetGlobalSize",[<db>, allocated,used])
This executes correctly as I loop through a list of databases.