Make sure to handle null from C.popen