I would restructure this for readabilty. Maybe
```
try:
    assert(isinstance(kwargs['init_from'], (DXAnalysisWorkflow, DXAnalysis))
              or (isinstance(kwargs["init_from"], basestring) and kwargs['init_from'].startswith(...)))
except AssertionError:
    raise ...
```