Fixed a bug in the mate assignment in toppct_mating().

Found a few more places where checks for the live/dead status of
animals did not reflect the addition of herd to the animal record.

Fixed two more places where dead cow data was assigned to dead bulls.

Much more PEP 8 cleanup.