Extract to temp dir, make test script use Flask in testing mode