Python module for population genetics