In most cases, biting hands is a bad habit stemming from owners using their hands to play with them. Use toys like cat fishing poles, balls, etc. instead. Cats play with their prey and biting their toys is just part of that.
At 4 month it's still not to late to teach her that hands are not toys (she will probably be confused at first but adapt quickly), but you both have to be consistent and strict about it.