get_primaries.py