<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def DispatchSpout(*a, **kw):
 """Factory to dispatch spout class based on config."""

    spout_class_name = get_config()['Spout']
    spout_class = import_name(spout_class_name, default_ns='birding.spout')
    return spout_class(*a, **kw)