# -*- coding: utf-8 -*-

import urwid

def run_tag(tag, *args, **kwargs):
    loop = urwid.MainLoop(tag, *args, **kwargs)
    loop.run()

def quit_app():
    raise urwid.ExitMainLoop()

# -*- coding: utf-8 -*-

import urwid

def run_tag(tag, *args, **kwargs):
    loop = urwid.MainLoop(tag, *args, **kwargs)
    loop.screen.set_terminal_properties(colors=256)
    loop.run()

def quit_app():
    raise urwid.ExitMainLoop()

Set default property screen 256 colors.
Set default property screen 256 colors.
