[python] Replace negative values in an numpy array