Whose tradition did Ptolemy take on as leader of Egypt