Your code was:
if not isinstance(scope, list):
        scope = [scope]
Which seems to do the same for me. Correct me if I'm wrong.