Numpy Array Isinstance Nonetype Has No Attribute Append In Javascript