If the story is true, then the Pharoah would be the living representative of a deity (could be Thoth for that period), and all of his attendants would be priests, and if the "grandson" lived there, that would be the primary teachers. That connection, by the way, to such practices, gave the Jewish sages a lot of headaches.
“I've done everything the Bible says — even the stuff that contradicts the other stuff!"— Ned Flanders