better way to filter out None using np.not_equal