def strip_blank(dic):
 def _is_blank(v):
  '\n        Determines if the provided value contains no information\n        '
  return (isinstance(v, str) and (len(v.strip()) == 0))
 return dict([(k, v) for (k, v) in dic.iteritems() if (not _is_blank(v))])

def strip_blank ( dic ) : def _is_blank ( v ) : return ( isinstance ( v , str ) and ( len ( v . strip ( ) ) == 0 ) ) return dict ( [ ( k , v ) for ( k , v ) in dic . iteritems ( ) if ( not _is_blank ( v ) ) ] )
returns a dictionary stripped of any blank keys .