Core.py

First commit.  Builds sweep tables.