class Protocol:

    def __init__(self, a):
        self.a = a

def __call__(self):
    return self

def create_connection(Protocol):
    protocol = Protocol()
create_connection(Protocol(1))
asyncio create_connection protocol factory