No need for subprocess if using a temp file, blocking is fine