I'm not trying to defend whoever said those things to you, but are you sure they don't just try to be funny?
Do you never find 'racist' jokes funny?
Sometimes when people of all kinds of ethnicities say something and I think of a zinger I feel like I should say it. It's just jokes, and absolutely everyone gets joked about sometimes. I get that some people may take it too far and don't know when it's appropriate to joke around about stuff. Bare in mind this isn't jokes "lol ur skin is black" or "lol ur eyes are weird". That's rude and not funny.
Some months ago I was talking to an indian friend and he was talking about when his parents moved here. I asked him if they traveled with a plane or flying carpet. Am I racist too?
I want to live in a society where people are allowed to joke and it isn't 100% serious and PC all the time.
I personally look for intent. When someone jokes with me, I try to look past words and try to determine the intent. I simply can't label people racist for making jokes or generalizations about Indians. A lot of times these generalizations come from their experiences. Those generalizations themselves may be incorrect but it doesn't mean that they were made with racist or hateful intent. For example, if a white man or women is rude to me, I don't automatically assume that he/she is racist. There may be other explanations. May be the person was having a bad day. However, I have friends who immediately call such a person racist.