fix devnull on python 3.2