converts a binary 0/1 to Disabled/Enabled

def _binary_enable_zero_disable_one_conversion(cls, val, **kwargs):
        '''
        converts a binary 0/1 to Disabled/Enabled
        '''
        try:
            if val is not None:
                if ord(val) == 0:
                    return 'Disabled'
                elif ord(val) == 1:
                    return 'Enabled'
                else:
                    return 'Invalid Value: {0!r}'.format(val)  # pylint: disable=repr-flag-used-in-string
            else:
                return 'Not Defined'
        except TypeError:
            return 'Invalid Value'