old_contents: from web_433Mhz import app
  from flask import render_template
  
  @app.route('/', methods=['GET', 'POST'])
  def index():
      return render_template('index.html')
  
new_contents: from web_433Mhz import app
  from flask import render_template, jsonify
  
  import subprocess
  import os
  
  @app.route('/', methods=['GET', 'POST'])
  def index():
      return render_template('index.html')
  
  @app.route('/api/get_code', methods=['GET'])
  def get_code():
      proc = subprocess.Popen(os.path.abspath('../433Mhz'),\
              stdout=subprocess.PIPE)
      code = proc.communicate()[0].decode('utf-8')    # Grab the stdout
  
      return jsonify({'code': code})
  
subject: Add api call to open binary and grab stdout