don't you have a cleaner way of knowing whether you've been requested a model or an ensemble? does the caller know? (if this is the pythonic way, well, okay)