def authorizeStuff(self): auth = Auth('http', 'pfioh_config.cfg') allowed, error = auth.authorizeClientRequest(self.headers) print('\n\nAUTH: %s' % str(allowed)) if allowed: self.send_response(200, "Authentication Successful!") else: print('%s: %s %s' % error) self.send_error(error[0], error[1], error[2])