I get calls for birds that do this all the time. For safety reasons, you need to be able to handle your bird without too much stress. Think about what would happen if your bird needed to see a vet, or heaven forbid your home needed to be evacuated. These are both real possibilities, not to mention the plethora of other possibilities in which a bird would need to be handled.
First off, it's important to know what happens when the bird bites. The common, and natural response is to pull away. This actually teaches the bird that if it continues biting, it can avoid an unpleasant interaction. Some otherwise friendly birds also think of this as a game. It's important to not pull your hand away.
It's important to teach this slowly. When I deal with biting birds, I actually apply more pressure when the bird bites. Instead of the desired release of pressure, the bird learns that biting does not make the unpleasant interaction stop, but actually increases the unpleasantness of the interaction. For the first couple of lessons, the second the bird stops biting, pull your hand away. If it's for half a second between bites, pull your hand away. The bird will wonder what it did to earn the desired reward. This makes the bird think. After a few more repetitions, the bird will understand that the lack of biting releases the pressure, and will therefore begin to offer less biting when you reach for it. Practice this for a few sessions, remembering that it is important to pull your hand away when the bird stops biting.
I understand that bites are painful, and with some larger birds they can even be dangerous. As a behaviorist, I have learned, that when working with large predatory animals, we use a fake hand. A lot of dog trainers and animal shelters use such. Sounds expensive, right? On the contrary! Here is one of many under $10 I have found in a quick search on Amazon. The one I have I purchased from a manufacturer that makes Schutzhund gear for dogs, so I spent a little more money on mine. But any realistic looking hand will do.
[ame=http://www.amazon.com/RI-Novelty-The-Surprising-Arm/dp/B000NFBZJC/ref=sr_1_9?ie=UTF8&qid=1393076657&sr=8-9&keywords=fake+hand]Amazon.com : The Surprising Arm : Fake Disembodied Apendages : Toys & Games[/ame]
So start there, and get a reliable stop to the biting behavior. Go very slowly, and keep interactions short. Remember, initially this will be stressful, so I must again reiterate, keep interactions short. Once you're there, send me a private message and we will talk about next steps.