code: def append_static_code(filename, outf):
      
  
      basepath = os.path.dirname(os.path.realpath(__file__))
      filepath = os.path.join(basepath, 'swift/%s' % filename)
      
      print("Appending content of %s" % filename)
      
      with open(filepath) as inf:
          for line in inf:
              outf.write(line)
docs: Open and copy static code from specified file