adding in aggregations to the contributor_active table
changing so the limits are passed into the code, instead of being hard-coded
adding import sys to files