old_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import os
  import sys
  import json
  import smbus
  
  
  from flask import request, render_template, current_app, url_for, make_response
  from flask.views import View
  
  from lib.bus.digitalOut import digiOut
  
  
  
  
  def air_get_status(pin,state):
      """"""
      #digitalOut.setValue(0x20,0,value)
      pins = digiOut()
      status = {"msg":"running","code":pins.getValue(0x21)}
      r = make_response(json.dumps(status, indent=4),200)
      r.headers["Content-Type"] = "application/json; charset=utf-8"
      return r
  
  
  def air_set_status(pin,state):
      """"""
      #digitalOut.setValue(0x20,0,value)
      pins = digiOut()
      status = {"msg":"running","code":pins.setValue(0x20,pin,state)}
      r = make_response(json.dumps(status, indent=4),200)
      r.headers["Content-Type"] = "application/json; charset=utf-8"
      return r
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import os
  import sys
  import json
  import smbus
  
  
  from flask import request, render_template, current_app, url_for, make_response
  from flask.views import View
  
  from lib.bus.digitalOut import digiOut
  
  
  
  
  def air_get_status():
      """"""
      #digitalOut.setValue(0x20,0,value)
      pins = digiOut()
      status = {"msg":"running","code":pins.getValue(0x21)}
      r = make_response(json.dumps(status, indent=4),200)
      r.headers["Content-Type"] = "application/json; charset=utf-8"
      return r
  
  
  def air_set_status(pin,state):
      """"""
      #digitalOut.setValue(0x20,0,value)
      pins = digiOut()
      status = {"msg":"running","code":pins.setValue(0x20,pin,state)}
      r = make_response(json.dumps(status, indent=4),200)
      r.headers["Content-Type"] = "application/json; charset=utf-8"
      return r
  
subject: copy and paste error