Added archive.py. Moved tests to tests.py.