Added python code to create stack for running tests.