Who knows? I really doubt it was trying to eat you, probably just got a little scared.
My gtp and my young bloods didn't like my arm hair when I first got them. They start to crawl up my arm and I guess it would bother them and they all have given me a quick tag as if they thought my arm hair was out to get them. This happened a few times but now I guess they have learned my arm hair is friendly. Snakes can be silly.
Ball pythons bites are nothing to fear. Google some arboreal snakes, they have some chompers! But even they are not to bad. The teeth are so sharp its usually over before you know it happened.