fixed DEVNULL problem for python 3.2