title: Appending an item to a list using multiprocessing in Python
body: <p>In got this block of code:</p>
  
  <pre><code>def get_spain_accomodations():
      pool = Pool()
      links = soup.find_all('a', class_="hotel_name_link url")
      pool.map(get_page_links, links)
  
      #for a in soup.find_all('a', class_="hotel_name_link url"):
      #    hotel_url = "https://www.booking.com" + a['href'].strip()
      #    hotels_url_list.append(hotel_url)
  
  def get_page_links(link):
       hotel_url = "https://www.booking.com" + link['href'].strip()
       hotels_url_list.append(hotel_url)
  </code></pre>
  
  <p>For some reason the hotel_url is not being appended to the list. If I try with the commented loop it actually works, but not with the map() function. I also printed hotel_url for each get_page_links call and it worked. I have no idea what is going on. Below are the function callings.</p>
  
  <pre><code>init_BeautifulSoup()
  get_spain_accomodations()
  #get_hotels_wifi_rating()
  
  for link in hotels_url_list:
      print link
  </code></pre>
  
  <p>The code is executed without errors but the link list is not being printed.</p>