def call_soon(loop, callback, *args, **kwargs):
    if (args or kwargs):
        loop.add_callback(functools.partial(callback, *args, **kwargs))
    else:
        loop.add_callback(callback)
def call_soon(loop, callback, *args, **kwargs):
    if (args or kwargs):
        loop.add_callback(functools.partial(callback, *args, **kwargs))
    else:
        loop.add_callback(callback)