Python syscall return callbacks