Changing a matlab range command to a numpy one.