test_analyze.py: Portable cleanup