changed issubclass to np.issubclass_ to make it work