def isNoneValue(value):
 if isinstance(value, basestring):
  return (value in ('None', ''))
 elif isListLike(value):
  return all((isNoneValue(_) for _ in value))
 elif isinstance(value, dict):
  return (not any(value))
 else:
  return (value is None)

def isNoneValue ( value ) : if isinstance ( value , basestring ) : return ( value in ( 'None' , '' ) ) elif isListLike ( value ) : return all ( ( isNoneValue ( _ ) for _ in value ) ) elif isinstance ( value , dict ) : return ( not any ( value ) ) else : return ( value is None )
returns whether the value is unusable .