First (incomplete) series of API docs for genotype.py