More system calls to python calls and logging.