old_contents: 
  
  from importlib import import_module
  import sys
  
  
  def try_import(module_name):
      try:
          sys.stdout.write("Import %s ... " % module_name)
          sys.stdout.flush()
  
          m = import_module(module_name)
  
          sys.stdout.write("OK\n")
          sys.stdout.flush()
      except ImportError as e:
          sys.stdout.write("ERROR: %s" % e)
          sys.stdout.flush()
  
  
  def main():
      try_import("scipy")
      try_import("scipy.interpolate.rbf")
      try_import("Crypto")
      try_import("serial")
      try_import("PIL")
      try_import("numpy")
      try_import("zipimport")
  
      try_import("fluxclient")
      try_import("fluxclient.fcode")
      try_import("fluxclient.hw_profile")
      try_import("fluxclient.laser")
      try_import("fluxclient.printer")
      try_import("fluxclient.printer._printer")
      try_import("fluxclient.robot")
      try_import("fluxclient.scanner")
      try_import("fluxclient.scanner._scanner")
      try_import("fluxclient.upnp")
  
  
new_contents: 
  
  from importlib import import_module
  import sys
  
  
  def try_import(module_name):
      try:
          sys.stdout.write("Import %s ... " % module_name)
          sys.stdout.flush()
  
          import_module(module_name)
  
          sys.stdout.write("OK\n")
          sys.stdout.flush()
      except ImportError as e:
          sys.stdout.write("ERROR: %s" % e)
          sys.stdout.flush()
  
  
  def main():
      try_import("scipy")
      try_import("scipy.interpolate.rbf")
      try_import("Crypto")
      try_import("serial")
      try_import("PIL")
      try_import("numpy")
      try_import("zipimport")
  
      try_import("fluxclient")
      try_import("fluxclient.fcode")
      try_import("fluxclient.hw_profile")
      try_import("fluxclient.laser")
      try_import("fluxclient.printer")
      try_import("fluxclient.printer._printer")
      try_import("fluxclient.robot")
      try_import("fluxclient.scanner")
      try_import("fluxclient.scanner._scanner")
      try_import("fluxclient.upnp")
  
      sys.stdout.write("Open resource fluxclient::assets/flux3dp-icon.png ... ")
      sys.stdout.flush()
      try:
          import pkg_resources
          pkg_resources.resource_stream("fluxclient", "assets/flux3dp-icon.png")
          sys.stdout.write("OK\n")
      except Exception as e:
          sys.stdout.write("ERROR: %s" % e)
          sys.stdout.flush()
  
subject: Add open assets testcase