Made sieve.py into a class so that it can easily imported into other
scripts as needed.