changed subprocess call to work in 2.6