simple python implementation, gender based model