AAL/Python: control flow test added, an output error fixed

The output problem allowed successful execution of an output action in
the model if it was enabled before executing previous the input in the
model.