def parse_human_datetime(s):
 try:
  dttm = parse(s)
 except Exception:
  try:
   cal = parsedatetime.Calendar()
   dttm = dttm_from_timtuple(cal.parse(s)[0])
  except Exception as e:
   logging.exception(e)
   raise ValueError(u"Couldn't parse date string [{}]".format(s))
 return dttm

def parse_human_datetime ( s ) : try : dttm = parse ( s ) except Exception : try : cal = parsedatetime . Calendar ( ) dttm = dttm_from_timtuple ( cal . parse ( s ) [ 0 ] ) except Exception as e : logging . exception ( e ) raise ValueError ( u"Couldn't parse date string [{}]" . format ( s ) ) return dttm
returns datetime .