Greenlet-based transparent batching of calls