def sentencize(s):
 s = s.replace('\n', ' ').strip().split('.')
 s = (s[0] if len(s) else s)
 try:
  return ' '.join(s.split())
 except AttributeError:
  return s

def sentencize ( s ) : s = s . replace ( '\n' , ' ' ) . strip ( ) . split ( '.' ) s = ( s [ 0 ] if len ( s ) else s ) try : return ' ' . join ( s . split ( ) ) except AttributeError : return s
extract first sentence .