I am using gRPC in a Python script, and most of my code is wrapped in this:
def main(): with grpc.insecure_channel(address) as channel: ...