Reimplemented Diff and Patch interfaces with CFFI