old_contents: import retrieveBase
  import logging
  import httplib
  import socket
  import base64
  timeout = 60
  
  class retrieve(retrieveBase.retrieve):
      def __init__(self, *args, **kwargs):
          retrieveBase.retrieve.__init__(self,args,kwargs)
          self.port_default = 80
      def requestAsString(self):
          output = {'code' : 0}
          auth = base64.standard_b64encode("%s:%s" % (self.username, self.password))
          con = httplib.HTTPConnection(self.server, self.port, True, timeout)
          headers = {"User-Agent": "vmcatcher"}
          if (self.username != None) and (self.password != None):
              auth = base64.standard_b64encode("%s:%s" % (self.username, self.password))
              headers["Authorization"] = "Basic %s" % (auth)
          try:
              con.request("GET" , self.path, headers=headers)
          except socket.gaierror, E:
              output['error'] = E.strerror
              output['code'] = 404
              return output
          responce =  con.getresponse()
          httpstatus = responce.status
          if httpstatus == 200:
              output['responce'] = responce.read()
          else:
              output['error'] = responce.reason
              output['code'] = httpstatus
          return output
  
  
new_contents: import retrieveBase
  import logging
  import httplib
  import socket
  import base64
  timeout = 60
  
  class retrieve(retrieveBase.retrieve):
      def __init__(self, *args, **kwargs):
          retrieveBase.retrieve.__init__(self,args,kwargs)
          self.port_default = 80
      def requestAsString(self):
          output = {'code' : 0}
          auth = base64.standard_b64encode("%s:%s" % (self.username, self.password))
          con = httplib.HTTPConnection(self.server, self.port, True, timeout)
          headers = {"User-Agent": "vmcatcher"}
          if (self.username != None) and (self.password != None):
              auth = base64.standard_b64encode("%s:%s" % (self.username, self.password))
              headers["Authorization"] = "Basic %s" % (auth)
          try:
              con.request("GET" , self.path, headers=headers)
          except socket.gaierror as expt:
              output['error'] = expt.strerror
              output['code'] = 404
              return output
          responce =  con.getresponse()
          httpstatus = responce.status
          if httpstatus == 200:
              output['responce'] = responce.read()
          else:
              output['error'] = responce.reason
              output['code'] = httpstatus
          return output
  
  
subject: Remove flake8 E999 errors