Added basicConfig to logging and separated the use of the libraries available for opening URLs to use either PyCurl or Urllib2 and not to load both.