Modified marc.py to run as a script using sharding