Fix importmagic for the case that elpy-rpc--buffer-contents creates a temporary file.