old_contents: #!/usr/bin/env python3
  # -*- coding: utf8 -*-
  """
  Utilities for JSON encoding and decoding
  """
  from bottle import install
  import base64
  import json
  import numpy as np
  
  class NumPyEncoder(json.JSONEncoder):
      """
      A JSON encoder that is capable of encoding NumPy ndarray objects.
      """
      def default(self, obj):
          if isinstance(obj, np.ndarray):
              print(obj.tolist())
              return obj.tolist()
          elif isinstance(obj, np.generic): # Generic scalars
              return obj.item()
          # Let the base class default method raise the TypeError
          return obj
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf8 -*-
  """
  Utilities for JSON encoding and decoding
  """
  import base64
  import json
  import numpy as np
  
  class NumPyEncoder(json.JSONEncoder):
      """
      A JSON encoder that is capable of encoding NumPy ndarray objects.
      """
      def default(self, obj):
          if isinstance(obj, np.ndarray):
              print(obj.tolist())
              return obj.tolist()
          elif isinstance(obj, np.generic): # Generic scalars
              return obj.item()
          # Let the base class default method raise the TypeError
          return obj
  
subject: Fix stray import in JSON