def _parse_datetime(s):
 if s:
  return datetime.strptime(s, ISO8601)
 else:
  return datetime.fromtimestamp(0)

def _parse_datetime ( s ) : if s : return datetime . strptime ( s , ISO8601 ) else : return datetime . fromtimestamp ( 0 )
parse dates in the format returned by the github api .