@functools.wraps(method)
def syncified(*args, **kwargs):
    coro = method(*args, **kwargs)
    loop = asyncio.get_event_loop()
    if loop.is_running():
        return coro
    else:
        return loop.run_until_complete(coro)
@functools.wraps(method)
def syncified(*args, **kwargs):
    coro = method(*args, **kwargs)
    loop = asyncio.get_event_loop()
    if loop.is_running():
        return coro
    else:
        return loop.run_until_complete(coro)