Expression Structure Script to Replace Spaces with Underscore

Figured it out. Those objects must not register as python dictionaries when passed into the transform() function, so I used this instead.

if hasattr(val, 'items'):

Thanks,