Support subprocess of Python 2.6