Fix subprocess on Python 2.6