changed "editPed" to us C-function

"editPed" now uses the C-function "get_generation" as a replacement for "getGenAncestors".
Syntax and behaviour are preserved