Switch to urllib2 for api communication

Initial testing commit to use urllib2 as opposed to httplib (in
nbconnection)