class Person(db.Model):
    mother = db.SelfReferenceProperty(collection_name='mother_set')
father = db.SelfReferenceProperty(collection_name='father_set')
Recursive Relationship with Google App Engine and BigTable