MAINT: Add setup.py and tests.