<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(bundle, handler=handle_services):
 """Return a generator yielding changes required to deploy the given bundle. The bundle argument is a YAML decoded Python dict. """

    changeset = ChangeSet(bundle)
    while True:
        handler = handler(changeset)
        for change in changeset.recv():
            yield change
        if handler is None:
            break