Replaced "/dev/null" with os.devnull

Changed lines 98 and 135 by removing "/dev/null" from the arguments and replacing it with variable os.devnull for Windows compatibility.