def retrieve_data_from_paper(client, paper):
  """Given the url of a venue retrieves the data to a csv file

  Args:
	 	client (Client object from openreview): Specifies the base URL
      and the login infomation
		paper (string): Piece of text that identifies the paper in the venue
    
  Returns:
    A list of strings corresponding to the data fetched from a peper id,
    the list represents a row for the csv file in the following order:
    
    title,authors,emails,decision,abstract,pdf,replies

    Where replies contains in all the replies for the paper as a string
    with list format for example:
    
    [[('title', 'review of Deep Learning'), 
    ('review', "This paper ... )')], 
    [('title', 'review of Deep Learning')]]

	"""

  tmp = paper.to_json()
  forum_id = tmp['forum']
  content_keys = tmp["content"].keys()
  decision = ""
  if 'decision' in content_keys:
    decision = tmp['content']['decision']
  elif 'recommendation' in content_keys:
    decision = tmp['content']['recommendation']
  forum_comments = client.get_notes(forum=str(forum_id))
  
  row = []
  replies = []
  for comment in forum_comments:
    if 'abstract' in comment.content.keys():
      row.append(comment.content["title"])
      row.append(comment.content['authors'])
      row.append(comment.content['authorids'])
      if 'decision' in comment.content.keys():
        row.append(comment.content['decision'])
      else:
        row.append(decision)
      row.append(comment.content["abstract"])
      row.append(comment.content["pdf"])
    else:
      replies.append(list(comment.content.items()))
  row.append(replies)
  
  return row