Gender and Dynastic Political Selection