transfrom for a REG_SZ to properly handle "Not Defined"

def _string_put_transform(cls, item, **kwargs):
        '''
        transfrom for a REG_SZ to properly handle "Not Defined"
        '''
        if isinstance(item, six.string_types):
            if item.lower() == 'not defined':
                return None
            else:
                return item