how to get python first descendant