Run test from python script