Added basic auth case

Edited the call() function and added a case on conf('basic_auth'). If basic_auth is true, do the urlopen with basic authentication based on http://docs.python.org/2/howto/urllib2.html#id6. Otherwise do the default urlopen.