Well, since head shyness is not an illness, it really cannot be "cured".
That being said, most of my adult ball pythons that are handled regularly are not head shy very much. They will always pull their heads away when touched because they don't have any arms to protect themselves. No I do not touch their heads on purpose to make them less head shy.
Its a survival mechanism. Just don't let it bother you.