fixed replace_np.py again, still not completely fixed
fixed replace_np.py again, still not completely fixed