from .ta_handler import TaHandler def data_factory(who): f = { 'ta': TaHandler } return f.get(who)