cleaning up stack delete method; adding teardown cycle to test.py script