fixed technical difficulties with tests.py, but it still hangs. working on making a timeout mechanism using threading.