Update script.py

in some cases "arguments.exclude" is None